<template>
	<view class="deviceInfoLayout" v-if="resdata">
		<view class="item">
			{{$t('deviceInfo.brand')}}:{{resdata.brand}}
		</view>
		<view class="item">
			imei:{{resdata.imei}}
		</view>
		<view class="item">
			iccid:{{resdata.iccid}}
		</view>
		
		<view class="item">
			{{$t('deviceInfo.model')}}:{{resdata.model}}
		</view>
		<view class="item">
			{{$t('deviceInfo.versionCode')}}:{{resdata.osVer}}
		</view>

	</view>
</template>



<script setup>
	import { onLoad } from "@dcloudio/uni-app";
	import { ref } from "vue";
	import {
		i18nTool
	} from '../../utils/i18en';
	const resdata = ref(null);
	onLoad((e)=>{
		let{data}  = e;
		resdata.value = JSON.parse(data);
		uni.setNavigationBarTitle({
			title:i18nTool("deviceInfo.navTitle")
		})
	})

</script>

<style lang="scss" scoped>
	.deviceInfoLayout {
		margin: 40rpx 40rpx;
		.item {
			color: #333;
			font-size: 30rpx;
			height: 80rpx;
			align-items: center;
			display: flex;

		}
	}
</style>